const mongoose = require("mongoose"); //引入Mongoose
const Schema = mongoose.Schema; //声明Schema
// 商品评论
const commentSchema = new Schema({
  goodsId: { type: String, unique: true },
  comment: { type: Array },
  userName: { type: String },
  goodsName: { type: String }
});

mongoose.model("comment", commentSchema);
